exports.install = function (Vue, options) {
    Vue.prototype.changeData = function (){
        
    };

    Vue.prototype.wodetian = function (){
        return "123123";
    };


    Vue.prototype.$config = function (key){
        var arr={
            'url':"http://baidu.com",
            'name':'123123',
            'adminEmail':"php@123.com",

        };
        if(arr[key]==null){
            //则包含该元素
            return null;
        }
        var value=arr[key];
        return value;
    };



    Vue.prototype.GetCookie = function (cookieName){
       var name = cookieName + "=";
         var ca = document.cookie.split(';');
                for (var i = 0; i < ca.length; i++) {
                    var c = ca[i];
                    while (c.charAt(0) == ' ') c = c.substring(1);
                    if (c.indexOf(name) != -1) return c.substring(name.length, c.length);
                }
                return "";
    };



    Vue.prototype.SetCookie = function (cname, cvalue, exdays){

            var d = new Date();
            d.setTime(d.getTime() + (exdays * 10 * 60 * 60 * 1000));
            var expires = "expires=" + d.toUTCString();
            // console.info(cname + "=" + cvalue + "; " + expires);
            document.cookie = cname + "=" + cvalue + "; " + expires;

    };


   Vue.prototype.message = function (type,data){
       if(type=="ok"){
            $("#ok").html(data);
            $("#ok").fadeIn();
            setTimeout(function () {
                $("#ok").fadeOut();
            },1000)
        }else{
            $("#no").html(data);
            $("#no").fadeIn();
            setTimeout(function () {
                $("#no").fadeOut();
            },1000)
        }
    };

    Vue.prototype.ymh = function (val){

        
    };



    

};